package com.hyq.eduservice.controller;


import com.hyq.eduservice.service.SysDictService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author hyq
 * @since 2021-01-26
 */
@RestController
@RequestMapping("/dict")
@Api(value="SysDictController",description="SysDictController")
public class SysDictController {
    @Autowired
    SysDictService sysDictService;

    @ApiOperation("test")
    @GetMapping("test")
    public List getList(){
        return  sysDictService.list();
    }

}

